Optimal. Leaf size=44 \[ -\frac{a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}-\frac{b \cos ^4(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0318842, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {2668, 641} \[ -\frac{a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}-\frac{b \cos ^4(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2668
Rule 641
Rubi steps
\begin{align*} \int \cos ^3(c+d x) (a+b \sin (c+d x)) \, dx &=\frac{\operatorname{Subst}\left (\int (a+x) \left (b^2-x^2\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=-\frac{b \cos ^4(c+d x)}{4 d}+\frac{a \operatorname{Subst}\left (\int \left (b^2-x^2\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=-\frac{b \cos ^4(c+d x)}{4 d}+\frac{a \sin (c+d x)}{d}-\frac{a \sin ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.0126988, size = 44, normalized size = 1. \[ -\frac{a \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d}-\frac{b \cos ^4(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.022, size = 36, normalized size = 0.8 \begin{align*}{\frac{1}{d} \left ( -{\frac{b \left ( \cos \left ( dx+c \right ) \right ) ^{4}}{4}}+{\frac{a \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) }{3}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.95303, size = 65, normalized size = 1.48 \begin{align*} -\frac{3 \, b \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 6 \, b \sin \left (d x + c\right )^{2} - 12 \, a \sin \left (d x + c\right )}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.12835, size = 97, normalized size = 2.2 \begin{align*} -\frac{3 \, b \cos \left (d x + c\right )^{4} - 4 \,{\left (a \cos \left (d x + c\right )^{2} + 2 \, a\right )} \sin \left (d x + c\right )}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.08351, size = 82, normalized size = 1.86 \begin{align*} \begin{cases} \frac{2 a \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac{a \sin{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} + \frac{b \sin ^{4}{\left (c + d x \right )}}{4 d} + \frac{b \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{2 d} & \text{for}\: d \neq 0 \\x \left (a + b \sin{\left (c \right )}\right ) \cos ^{3}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.07937, size = 65, normalized size = 1.48 \begin{align*} -\frac{3 \, b \sin \left (d x + c\right )^{4} + 4 \, a \sin \left (d x + c\right )^{3} - 6 \, b \sin \left (d x + c\right )^{2} - 12 \, a \sin \left (d x + c\right )}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]